//package com.badibadi.fragment;
//
//import android.os.Bundle;
//import android.os.Handler;
//import android.support.v4.app.Fragment;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.BaseAdapter;
//import android.widget.LinearLayout;
//
//import com.badibadi.activity.AfterLandingActivity;
//import com.badibadi.fragment.AfterLandingMyHomePageOtherPeopleFragment.XListView1Adapter;
//import com.badibadi.uniclubber.R;
//import com.view.my_view.XListView;
//import com.view.my_view.XListView.IXListViewListener;
//
//public class AfterLandingClubManangerPageFragment extends Fragment implements
//IXListViewListener{
//
//  private XListView1Adapter x1Adapter;
//  private XListView xListView1;
//  /** 每次加入的数量 */
//  private int addNumber = 20;
//  private Handler mHandler;
//
//@Override
//public void onCreate(Bundle savedInstanceState) {
//// TODO Auto-generated method stub
//super.onCreate(savedInstanceState);
//x1Adapter = new XListView1Adapter();
//mHandler = new Handler();
//}
//
//@Override
//public View onCreateView(LayoutInflater inflater, ViewGroup container,
//	Bundle savedInstanceState) {
//// TODO Auto-generated method stub
//
//View view = inflater.inflate(R.layout.xlistview, null);
//InitMyXListView1(view);
//
//// mListView.setPullLoadEnable(true);
//
//// mListView.setAdapter(x1Adapter);
//return view;
//}
//
//public void InitMyXListView1(View view) {
//xListView1 = (XListView) view.findViewById(R.id.my_xListView1);
//xListView1.setPullLoadEnable(true);
//xListView1.setDividerHeight(0);
//xListView1.setAdapter(x1Adapter);
//xListView1.setXListViewListener(this);
//}
//
//@Override
//public void onRefresh() {
//// TODO Auto-generated method stub
//mHandler.postDelayed(new Runnable() {
//	@Override
//	public void run() {
//		geneItems();
//		x1Adapter.notifyDataSetInvalidated();
//		onLoad();
//	}
//}, 2000);
//}
//
//protected void onLoad() {
//// TODO Auto-generated method stub
//xListView1.stopRefresh();
//xListView1.stopLoadMore();
//xListView1.setRefreshTime("刚刚");
//}
//
//@Override
//public void onLoadMore() {
//// TODO Auto-generated method stub
//mHandler.postDelayed(new Runnable() {
//	@Override
//	public void run() {
//		geneItems();
//
//		x1Adapter.notifyDataSetChanged();
//		onLoad();
//	}
//}, 2000);
//}
//
//protected void geneItems() {
//// TODO Auto-generated method stub
//// x1Adapter.setAddNumber(x1Adapter.getAddNumber()+20);
//addNumber = addNumber + 20;
//}
//
//class XListView1Adapter extends BaseAdapter {
//
//@Override
//public int getCount() {
//	// TODO Auto-generated method stub
//	return addNumber;
//}
//
//@Override
//public Object getItem(int position) {
//	// TODO Auto-generated method stub
//	return null;
//}
//
//@Override
//public long getItemId(int position) {
//	// TODO Auto-generated method stub
//	return 0;
//}
//
//@Override
//public View getView(int position, View convertView, ViewGroup parent) {
//	// TODO Auto-generated method stub
///////////////////////////////////////////////////这个view是看别人空间的
//	if (position == 0) {
//		LayoutInflater inflater = LayoutInflater.from(getActivity());
//		convertView = inflater.inflate(
//				R.layout.fragment_after_landing_home_page1, null);
//	  final LinearLayout one=(LinearLayout)convertView.findViewById(R.id.one);
//	  final LinearLayout one_line=(LinearLayout)convertView.findViewById(R.id.one_line);
//	  final LinearLayout two=(LinearLayout)convertView.findViewById(R.id.two);
//	  final LinearLayout two_line=(LinearLayout)convertView.findViewById(R.id.two_line);
//		//右箭头的
//		convertView.findViewById(R.id.right).setOnClickListener(new View.OnClickListener() {
//		
//		@Override
//		public void onClick(View v) {
//			// TODO Auto-generated method stub
//			//切换到2
//		    one.setVisibility(View.GONE);
//		    one_line.setVisibility(View.GONE);
//		    two.setVisibility(View.VISIBLE);
//		    two_line.setVisibility(View.VISIBLE);
//		}
//	});
//		convertView.findViewById(R.id.left).setOnClickListener(new View.OnClickListener() {
//			
//			@Override
//			public void onClick(View v) {
//				// TODO Auto-generated method stub
//				//切换到1
//			    one.setVisibility(View.VISIBLE);
//			    one_line.setVisibility(View.VISIBLE);
//			    two.setVisibility(View.GONE);
//			    two_line.setVisibility(View.GONE);
//			}
//		});
//		return convertView;
//	}
/////////////////////////////////////////////////////////
//	
//	//下面的是发说说的
//	LayoutInflater inflater = LayoutInflater.from(getActivity());
//	convertView = inflater.inflate(R.layout.shuoshuodongtai, null);
//	convertView.findViewById(R.id.pinglun).setOnClickListener(new View.OnClickListener() {
//		
//		@Override
//		public void onClick(View v) {
//			// TODO Auto-generated method stub
//			((AfterLandingActivity)getActivity()).jiazai(7);
//		}
//	});
//	return convertView;
//   }
//     
//
//
//
//   }
//
//
//}